import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/index',
            name: 'index',
            component: () => import('../components/index'),
        },
        {
            path: '/',
            component: () => import('../components/index'),
        },
        {
            path: '/bottom',
            component: () => import('../components/bottom'),
        },
        {
            path: '/bookrack',
            name: 'bookrack',
            component: () => import('../components/bookrack'),
        },
        {
            path: '/chongzhi',
            component: () => import('../components/chongzhi2'),
        },
        // {
        //     path: '/chongzhi2',
        //     component: () => import('../components/chongzhi2'),
        // },
        {
            path: '/my',
            component: () => import('../components/my'),
        },
        {
            path: '/lishi',
            name: 'lishi',
            component: () => import('../components/lishi'),
        },
        {
            path: '/book_details',
            component: () => import('../components/book_details'),
        },
        {
            path: '/read',
            component: () => import('../components/read'),
            meta:{
                keepAlive:false //不需要被缓存的组件
            }
        },
        {
            path: '/catalog',
            component: () => import('../components/catalog'),
        },
        {
            path: '/classify',
            component: () => import('../components/classify'),
        },
        {
            path: '/search',
            component: () => import('../components/search'),
        },
        {
            path: '/classify_search',
            component: () => import('../components/classify_search'),
        },
        {
            path: '/end',
            component: () => import('../components/end'),
        },
        {
            path: '/tousu',
            component: () => import('../components/tousu/tousu'),
        },
        {
            path: '/tousu2',
            component: () => import('../components/tousu/tousu2'),
        },
        {
            path: '/tijiao',
            component: () => import('../components/tousu/tijiao'),
        },
        {
            path: '/vip',
            component: () => import('../activity/vip'),
        },
        {
            path: '/shou',
            component: () => import('../activity/shou'),
        },
        {
            path: '/hd51',
            component: () => import('../activity/hd51'),
        },
        {
            path: '/tehui',
            component: () => import('../activity/tehui'),
        },
        {
            path: '/logout',
            component: () => import('../components/logout'),
        },
        {
            path: '/77',
            component: () => import('../activity/77'),
        },
    ]
})
